package com.bsoft.gol.hcs.clinical.bean.qo;

import com.bsoft.gol.hcs.clinical.bean.req.HisPrescriptionInformationRequest;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * Created by ChenJij on 2020/11/6.
 */
@XmlRootElement(name = "MsgBody")
public class SaveHisPrescriptionInformationQo {
    private InnerPatient innerPatient;
    private InnerVisit innerVisit;
    private List<HisPrescriptionInformationRequest> prescriptionList;

    @XmlElement(name = "Patient")
    public InnerPatient getInnerPatient() {
        return innerPatient;
    }

    public void setInnerPatient(InnerPatient innerPatient) {
        this.innerPatient = innerPatient;
    }

    @XmlElement(name = "Visit")
    public InnerVisit getInnerVisit() {
        return innerVisit;
    }

    public void setInnerVisit(InnerVisit innerVisit) {
        this.innerVisit = innerVisit;
    }

    @XmlElementWrapper(name = "RecipeLists")
    @XmlElement(name = "RecipeList")
    public List<HisPrescriptionInformationRequest> getPrescriptionList() {
        return prescriptionList;
    }

    public void setPrescriptionList(List<HisPrescriptionInformationRequest> prescriptionList) {
        this.prescriptionList = prescriptionList;
    }

    public static class InnerPatient {
        private String mpi;
        private String visitOrganization;
        private String hosArea;
        private String sourcePatientId;
        private String idCardCode;
        private String idCard;
        private String medicalCardType;
        private String medicalCardId;
        private String birthDay;

        @XmlElement(name = "BirthDay")
        public String getBirthDay() {
            return birthDay;
        }

        public void setBirthDay(String birthDay) {
            this.birthDay = birthDay;
        }

        @XmlElement(name = "Mpi")
        public String getMpi() {
            return mpi;
        }

        public void setMpi(String mpi) {
            this.mpi = mpi;
        }

        @XmlElement(name = "VisitOrganization")
        public String getVisitOrganization() {
            return visitOrganization;
        }

        public void setVisitOrganization(String visitOrganization) {
            this.visitOrganization = visitOrganization;
        }

        @XmlElement(name = "HosArea")
        public String getHosArea() {
            return hosArea;
        }

        public void setHosArea(String hosArea) {
            this.hosArea = hosArea;
        }

        @XmlElement(name = "SourcePatientId")
        public String getSourcePatientId() {
            return sourcePatientId;
        }

        public void setSourcePatientId(String sourcePatientId) {
            this.sourcePatientId = sourcePatientId;
        }

        @XmlElement(name = "IdCardCode")
        public String getIdCardCode() {
            return idCardCode;
        }

        public void setIdCardCode(String idCardCode) {
            this.idCardCode = idCardCode;
        }

        @XmlElement(name = "IdCard")
        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        @XmlElement(name = "MedicalCardType")
        public String getMedicalCardType() {
            return medicalCardType;
        }

        public void setMedicalCardType(String medicalCardType) {
            this.medicalCardType = medicalCardType;
        }

        @XmlElement(name = "MedicalCardId")
        public String getMedicalCardId() {
            return medicalCardId;
        }

        public void setMedicalCardId(String medicalCardId) {
            this.medicalCardId = medicalCardId;
        }
    }

    public static class InnerVisit {
        private String clinicId;
        private String hospizationId;
        private String visitId;
        private String patientType;
        private String name;
        private int sex;
        private String age;
        private String monthAge;
        private String weight;
        private String height;
        private String deptCode;
        private String deptName;
        private String doctorCode;
        private String doctor;

        @XmlElement(name = "ClinicId")
        public String getClinicId() {
            return clinicId;
        }

        public void setClinicId(String clinicId) {
            this.clinicId = clinicId;
        }

        @XmlElement(name = "HospizationId")
        public String getHospizationId() {
            return hospizationId;
        }

        public void setHospizationId(String hospizationId) {
            this.hospizationId = hospizationId;
        }

        @XmlElement(name = "VisitId")
        public String getVisitId() {
            return visitId;
        }

        public void setVisitId(String visitId) {
            this.visitId = visitId;
        }

        @XmlElement(name = "PatientType")
        public String getPatientType() {
            return patientType;
        }

        public void setPatientType(String patientType) {
            this.patientType = patientType;
        }

        @XmlElement(name = "Name")
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @XmlElement(name = "Sex")
        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        @XmlElement(name = "Age")
        public String getAge() {
            return age;
        }

        public void setAge(String age) {
            this.age = age;
        }

        @XmlElement(name = "MonthAge")
        public String getMonthAge() {
            return monthAge;
        }

        public void setMonthAge(String monthAge) {
            this.monthAge = monthAge;
        }

        @XmlElement(name = "Weight")
        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        @XmlElement(name = "Height")
        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        @XmlElement(name = "DeptCode")
        public String getDeptCode() {
            return deptCode;
        }

        public void setDeptCode(String deptCode) {
            this.deptCode = deptCode;
        }

        @XmlElement(name = "DeptName")
        public String getDeptName() {
            return deptName;
        }

        public void setDeptName(String deptName) {
            this.deptName = deptName;
        }

        @XmlElement(name = "DoctorCode")
        public String getDoctorCode() {
            return doctorCode;
        }

        public void setDoctorCode(String doctorCode) {
            this.doctorCode = doctorCode;
        }

        @XmlElement(name = "Doctor")
        public String getDoctor() {
            return doctor;
        }

        public void setDoctor(String doctor) {
            this.doctor = doctor;
        }
    }
}